import request from '@/utils/request'

export const getCateList = () => {
  return request({
    url: 'categories',
    method: 'get'
  })
}


export const getCateListById = (cat_id) => {
  return request({
    url: 'categories/?cat_id=' + cat_id,
    method: 'get'
  })
}
